package com.question.java.enums;

/**
 * Created with IntelliJ IDEA.
 * Author: Jun.Yang
 * Create: Jun.Yang (2015/12/8)
 * Description: 自定义枚举返回索引值
 * To change this template use File | Settings | File Templates.
 */
public enum AuditEnum {
    未审核,审核中,审核通过,审核未通过;
    public static int getActualValue(AuditEnum auditEnum) {
        switch (auditEnum) {
            case 未审核:
                return 0;
            case 审核中:
                return 1;
            case 审核通过:
                return 2;
            case 审核未通过:
                return -1;
            default:
                return 0;
        }
    }
}
